package net.openvision.util.logical;

public class LogicalPredicate extends Predicate {

	private LogicalExpression expression;
	
	public LogicalPredicate(LogicalExpression expression) {
		this.expression = expression;
	}
	
	@Override
	public boolean evaluate(Object... elements) {
		Environment env = new Environment(elements);
		return expression.evaluate(env);
	}
	
	@Override
	public boolean evaluate(Environment e) {
		return expression.evaluate(e);
	}

	@Override
	public int getArity() {
		// TODO Auto-generated method stub
		return 0;
	}

}
